const express = require('express');
const router = express.Router();
const booksTypeController = require('../controller/BooksTypeController');

router.get('/getType', booksTypeController.getType);

router.get('/searchType', booksTypeController.searchType);

router.post('/addType', booksTypeController.addType);

router.put('/editType/:id/:name', booksTypeController.editType);

router.get('/getTypeBooks', booksTypeController.getTypeBooks);

router.delete('/delType/:cateId', booksTypeController.delType);
module.exports = router;
